<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('在制品超标准每卡详情')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-table table-bordered" style="white-space: nowrap;">
				<table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
		var isOverStandard = [[${@dict.getType('is_over_standard')}]];
		var wipLotStepTimeStaList = [[${wipLotStepTimeStaList}]];

		var columns = [
				{
					field: 'NO',
					align : 'center',
					title: 'NO',
					formatter: function (value, row, index) {
						return $.table.serialNumber(index);
					}
				},
				{
					field: 'lotId',
					align : 'center',
					title: '卡号'
				},
				{
					field: 'partName',
					align : 'center',
					title: '产品名称'
				},
				{
					field: 'mainQty',
					align : 'center',
					title: '片数'
				},
				{
					field: 'stepName',
					align : 'center',
					title: '工步名称'
				},
				{
					field: 'stageId',
					align : 'center',
					title: '工段名称'
				},
				{
					field: 'stageDsc',
					align : 'center',
					title: '工段描述'
				},
				{
					field: 'state',
					align : 'center',
					title: '当前状态'
				},
				{
					field: 'stageDonedRunTime',
					align : 'center',
					title: '工段run时长(分钟)'
				},
				{
					field: 'stageRunStandardTime',
					align : 'center',
					title: '工段run标准时长(分钟)'
				},
				{
					field: 'stageDonedWaitTime',
					align : 'center',
					title: '工段wait时长(分钟)'
				},
				{
					field: 'stageWaitStandardTime',
					align : 'center',
					title: '工段wait标准时长(分钟)'
				},
				{
					field: 'isOverStandard',
					align : 'center',
					title: '是否超标准',
					formatter: function(value, row, index) {
						return $.table.selectDictLabel(isOverStandard, value);
					}
				}
		];

		var options = {
			showSearch: false,
			showRefresh: false,
			showToggle: false,
			showColumns: false,
			pagination: false,
			modalName: "在制品超标准每卡详情",
			columns: columns,
			data: wipLotStepTimeStaList
		};

        $(function() {
            $.table.init(options);
        });
    </script>
</body>
</html>